# -*- coding: utf-8 -*-
"""
@Time    : 2021/4/27 13:03
@Author  : jamon
"""


class ObException(Exception):

    def __init__(self, name: str, **kwargs):
        self.name = name
        self.params = kwargs

    def __str__(self):
        return self.__repr__()

    def __repr__(self):
        return "<%s: name=%s params=%s>" % (
            self.__class__.__name__, self.name, self.params)
